/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ivanbiz.nilai;

import java.util.List;

/**
 *
 * @author User
 */
public class NilaiKriteriaServiceImpl implements NilaiKriteriaService{
    private NilaiKriteriaDAO nilaiKriteriaDAO;

    public void setNilaiKriteriaDAO(NilaiKriteriaDAO nilaiKriteriaDAO) {
        this.nilaiKriteriaDAO = nilaiKriteriaDAO;
    }
    
     public void saveNilaiKriteria(NilaiKriteria nilaiKriteria) throws Exception {
        this.nilaiKriteriaDAO.save(nilaiKriteria);
    }

    public void deleteNilaiKriteria(NilaiKriteria nilaiKriteria) throws Exception {
        this.nilaiKriteriaDAO.delete(nilaiKriteria);
    }

    public void updateNilaiKriteria(NilaiKriteria nilaiKriteria) throws Exception {
        this.nilaiKriteriaDAO.update(nilaiKriteria);
    }

    public List loadAll() throws Exception {
        return this.nilaiKriteriaDAO.getAll(NilaiKriteria.class);
    }

    public NilaiKriteria loadById(long id) throws Exception {
        return (NilaiKriteria) this.nilaiKriteriaDAO.load(NilaiKriteria.class, id);
    }
}
